#include <54func.h>
int main()
{
    if(fork())
    {
        int wstatus;
        if(WIFEXITED(wstatus))
        {
            printf("exited,status = %d\n",WEXITSTATUS(wstatus));
        }else if(WIFSIGNALED(wstatus))
        {
            printf("abnormal quit,terminal signed = %d\n",WTERMSIG(wstatus));
        }
    }else{
        abort();
        return -1;
    }
    return 0;
}
